import api from '../utils/api'

// 管理员登录
export const login = (credentials) => {
  return api.post('/admin/login', credentials)
}

// 获取管理员信息  
export const getAdminInfo = () => {
  return api.get('/admin/info')
}

// 管理员登出
export const logout = () => {
  return api.post('/admin/logout')
}

// 保持向后兼容的authAPI对象导出
export const authAPI = {
  login,
  getAdminInfo,
  logout
} 